package com.smart.home.command.common;

/**
 * 控制命令基础信息类
 *
 * @author zhangpeng
 * @version 1.0
 * @date 2017-03-09
 */
public abstract class BaseCommand {

    /**
     * 设备码
     */
    private String deviceCode;
    /**
     * 设备主机地址
     */
    private String host;
    /**
     * 设备端口
     */
    private int port;

    public BaseCommand(String deviceCode, String host, int port) {
        this.deviceCode = deviceCode;
        this.host = host;
        this.port = port;
    }

    protected String getDeviceCode() {
        return deviceCode;
    }

    protected String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }

}
